// Copyright (c) MatrixFramework. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.

using System.Threading.Tasks;

namespace MatrixFramework.Keycloak.Abstractions.Services;

/// <summary>
/// 租户服务接口
/// </summary>
public interface ITenantService
{
    /// <summary>
    /// 获取租户Realm名称
    /// </summary>
    /// <param name="tenantId">租户ID</param>
    /// <returns>Realm名称</returns>
    Task<string> GetTenantRealmAsync(string tenantId);

    /// <summary>
    /// 创建租户Realm
    /// </summary>
    /// <param name="tenantId">租户ID</param>
    /// <param name="tenantName">租户名称</param>
    /// <returns>操作结果</returns>
    Task<bool> CreateTenantRealmAsync(string tenantId, string tenantName);
}